package cn.tedu.shoot;
import java.util.Random;
import java.awt.image.BufferedImage;
import java.util.Arrays;
public class BigAirplane extends FlyingObject implements Enemy { 	
		private int speed;
		public BigAirplane(){
		  super(100,148);
		  speed = 2;
		}
		public void step() {
			y+=speed;
		}
		public int getScore() {
			return 5;
		}
		int index=1;
		public BufferedImage getImage() {
			if(isLife()) {
				return Images.bigairplanes[0];
			}else if(isDead()) {
				BufferedImage img = Images.bigairplanes[index++];
				if(index==Images.bigairplanes.length) {
					state = REMOVE;
				}
				return img;
			}
			return null;
		}
		
}


